package com.ivi.car.module.reservation.prensenter;

import android.arch.lifecycle.Lifecycle;

import com.ivi.car.base.BasePresenter;
import com.ivi.car.module.reservation.model.ReservationContract;
import com.ivi.car.module.reservation.model.ReservationModel;
import com.trello.rxlifecycle2.LifecycleProvider;

/**
 * Created by Administrator on 2018/3/8.
 */

public class ReservationPrensenter extends BasePresenter<ReservationContract.View>
        implements ReservationContract.Prensenter {
    private final ReservationModel mReservationModel;
    public ReservationPrensenter(ReservationContract.View view, LifecycleProvider<Lifecycle.Event> provider) {
        super(view, provider);
        mReservationModel = new ReservationModel(mProvider);
    }

    @Override
    public void loadReservationSuccessData(String msg) {
        mReservationModel.loadReservationSuccessData(msg);

    }

    @Override
    public void loadReservationData(String stbID) {
        mReservationModel.loadReservationData(stbID);
    }
}
